home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / include / kde / knetworkmanager-vpnplugin.h < prev   
C/C++ Source or Header  |  2008-08-17  |  2KB  |  76 lines

  1. /***************************************************************************
  2.  *
  3.  * knetworkmanager-vpnplugin.h - A NetworkManager frontend for KDE 
  4.  *
  5.  * Copyright (C) 2006 Novell, Inc.
  6.  *
  7.  * Author: Helmut Schaa <hschaa@suse.de>, <helmut.schaa@gmx.de>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  *
  14.  * This program is distributed in the hope that it will be useful,
  15.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  * GNU General Public License for more details.
  18.  * 
  19.  * You should have received a copy of the GNU General Public License
  20.  * along with this program; if not, write to the Free Software
  21.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  22.  *
  23.  **************************************************************************/
  24.  
  25. #ifndef KNETWORKMANAGER_VPNPLUGIN_H
  26. #define KNETWORKMANAGER_VPNPLUGIN_H
  27.  
  28. #include <qwidget.h>
  29. #include <qmap.h>
  30. #include <dbus/qdbusdata.h>
  31. #include <dbus/qdbusvariant.h>
  32. #include "knetworkmanager-plugin.h"
  33.  
  34. #define KNETWORKMANAGER_VPNPLUGIN "KNetworkManager/VPNPlugin"
  35.  
  36. class VPNConfigWidget : public QWidget
  37. {
  38.     Q_OBJECT
  39.     public:
  40.         virtual ~VPNConfigWidget();
  41.         VPNConfigWidget(QWidget* parent = NULL, const char* name = NULL); 
  42.  
  43.         virtual void setVPNData(const QStringList&, const QMap<QString,QString>&);    
  44.         virtual QMap<QString, QString> getVPNProperties();
  45.         virtual QStringList getVPNRoutes();
  46.         virtual bool hasChanged();
  47.         virtual bool isValid(QStringList&);
  48. };
  49.  
  50. class VPNAuthenticationWidget : public QWidget
  51. {
  52.     Q_OBJECT
  53.     public:
  54.         virtual ~VPNAuthenticationWidget();
  55.         VPNAuthenticationWidget(QWidget* parent = NULL, const char* name = NULL);
  56.         
  57.         virtual void setVPNData(const QStringList&, const QMap<QString, QString>&);
  58.         virtual QMap<QString, QString> getPasswords();
  59.         virtual bool needsUserInteraction();
  60. };
  61.  
  62. class VPNPlugin : public Plugin
  63. {
  64.     Q_OBJECT
  65.     public:
  66.         VPNPlugin(QObject*, const char*, const QStringList&);
  67.         virtual ~VPNPlugin();
  68.  
  69.         virtual VPNConfigWidget* CreateConfigWidget(QWidget* parent = 0);
  70.         virtual VPNAuthenticationWidget* CreateAuthenticationWidget(QWidget* parent = 0);
  71. };
  72.  
  73.  
  74. #endif /* KNETWORKMANAGER_VPNPLUGIN_H */
  75.  
  76.